<include file="__THEME__/header" />
<script>
function changeverify(){
    var date = new Date();
    var ttime = date.getTime();
    var url = "{:U('home/Public/verify')}";
    $('#verifyimg').attr('src',url+'&'+ttime);
}
</script>

<!--表单验证-->
<script type="text/javascript" src="../Public/js/jquery.validator.reg.js"></script>
<script type="text/javascript" src="../Public/js/jquery.corners.min.js"></script>
<script type="text/javascript" src="../Public/js/register.js" ></script>
		
	<!-- content -->
	<section class="form_title">
		<div class="intro"><h2>获取幸福帐号</h2><h3>架起你与孩子的桥梁</h3> <span class="buttons"><a href="#" class="helper">你的教育助手</a><a href="#" class="buddy">寻找孩子伙伴</a><a href="#" class="health">给宝宝健康</a></span></div>
		<div class="info">
			<em class="icon icon_1"></em>
			<p class="buddy_msg">每天不知道带孩子去哪玩？不知道跟谁玩？告诉你的小伙伴上aiyawa.com，悄悄给他们你的位置信息，不用你约，小伙伴们都来找你玩</p>
			<p class="helper_msg hidden">你的教育助手 流行的传统的视频、音乐、故事等免费资源，众多家长的成功教育方法，专家在线听取你的故事并给你最及时的纠正教育错误</p>
			<p class="health_msg hidden">给你的孩子健康 第一时间提示你最近的关于孩子的各种疾病及预防，定时功能给你和孩子一个健康的上网学习方案，营养是健康的法宝，系统根据天气、时节、你的宝宝的健康程度给你每天早中晚推荐不同的饮食方案</p>
			<em class="arrow"></em>
		</div>
	</section>
	
	<section class="form_content">
		<form class="form-horizontal validate" action="{:U('home/Public/doRegister')}" method="post" id="regform" name="reg">
	        <fieldset>
	         <legend></legend>
	         <em class="top_line">&nbsp;</em>
	         <div class="content">
		          <div class="control-group">
		            <label class="control-label" for="input01">* 登录邮箱</label>
		            <div class="controls">
		              <input type="text" class="input-xlarge" value="" name="email" require="true" datatype="email|ajax" url="{:U('home/Public/isEmailAvailable')}" msg="请填有效邮箱地址，以完成注册|邮箱已被占用"/>
		               <div id="help_email" class="help"><p>请输入常用邮箱,如:example@example.com</p></div>
		               <div id="error_email" class="error_tips" style="display:none;"></div>
		            </div>
		          </div>
		          <div class="control-group">
		            <label class="control-label" for="input01">* 站内昵称</label>
		            <div class="controls">
		              <input type="text" class="input-xlarge" value="" name="nickname" min="3" max="10" maxLength="10" require="true" datatype="require|ajax" url="{:U('home/Public/isValidNickName')}"  msg="请填写宝宝昵称"/>
 					  <div id="help_nickname" class="help"><p>一般是宝宝真实名字</p></div>
		              <div id="error_nickname" class="error_tips" style="display:none;"></div>
		            </div>
		          </div>

		          <div class="control-group">
		            <label class="control-label" for="input01">* 登录密码</label>
		            <div class="controls">
		              <input type="password" class="input-xlarge" name="password" id="password" require="true" value="" datatype="limit"  min="6" max="16" msg="密码由6-16个字符组成"/>
		              <div id="help_password" class="help"><p>请填写密码并且密码长度为6-16位</p><div class="ft"></div></div>
		              <div id="error_password" class="error_tips" style="display:none;"></div>
		            </div>
		          </div>

		          <div class="control-group">
		            <label class="control-label" for="input01">* 确认密码</label>
		            <div class="controls">
		              <input type="password" class="input-xlarge"  name="repassword" require="true" value="" datatype="repeat|limit"  min="6" max="16" to="password" msg="两次输入的密码须一样|确认密码由6-16个字符组成"/>
 					  <div id="help_repassword" class="help"><p>请重复填写密码并且密码长度为6-16位</p><div class="ft"></div></div>
		              <div id="error_repassword" class="error_tips" style="display:none;"></div>
		            </div>
		          </div>
		          <if condition="$_SERVER['HTTP_REFERER']">
                    <input type="hidden" name="HTTP_REFERER" value="{$_SERVER['HTTP_REFERER']}">
                  </if>
		          <div class="form-actions">
		            <button type="submit" class="btn btn-primary">保存</button>
		          </div>
	          </div>
	          <em class="bottom_line"></em>
	        </fieldset>
      	</form>
	</section>
	<!-- content end -->
	
<include file="__THEME__/footer" />